package com.kly.cashmall.module.home.home_tab.tab_other;


/**
 * @author
 * @date 2018/1/22
 */
public class HomeTabObserver extends ObserverWrapper<String> {

  private static HomeTabObserver instance;

  private HomeTabObserver(ObserverInterface<String> observeInterface) {
    super(observeInterface);
  }

  public synchronized static HomeTabObserver newInstance() {
    if (instance == null || instance.isEmpty()) {
      instance = new HomeTabObserver(ObserverFactory.newInstance("HomeTabObserver"));
    }
    return instance;
  }

  @Override
  public void clear() {
    super.clear();
    instance = null;
  }
}